<?php


namespace app\api\model\user;


use think\Model;

class UserExtract extends Model
{
    // 表名
    protected $name = 'user_extract';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'createtime';


    public function getStatusAttr($value)
    {
        $type = ['extracting'=>'审核中','success'=>'提现成功','failed'=>'提现失败'];
        return $type[$value];
    }
    public function getMoneyAttr($value)
    {
        $value = '-'.$value;
        return $value;
    }
}